package cn.yunhe.service;

import cn.yunhe.entity.Field;
import cn.yunhe.entity.Question;
import cn.yunhe.entity.QuestionType;
import cn.yunhe.entity.User;
import cn.yunhe.pojo.UserQuestionHisErrorprac;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserQuestionHisErrorpracService {
    public List<UserQuestionHisErrorprac> getQuesHisErrorPrac(User user, int fieldId, int  qyid);
    //这个是总共具有的条数
    public int getAllErrorTitle(User user, int fieldId, int  qyid);

    public PageInfo pageSplit(User user, int fieldId, int qyid, int curPage, int perNum);

    public String getQyNameById(int id);

    public String getfieldNameById(int id);

    /**
     *
     *
     * @param uid  用户id
     * @param qyid 问题类型id
     * @param data1 问题的相关信息
     * @return
     */
    public  boolean insertpracanswer(int uid, int qyid,String data1);



}
